package com.zc.custom.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zc.custom.mapper.ChargeCustomOrderInfoProcessMapper;
import com.zc.custom.domain.ChargeCustomOrderInfoProcess;
import com.zc.custom.service.IChargeCustomOrderInfoProcessService;

/**
 * 订单流程Service业务层处理
 *
 * @author glb
 * @date 2023-10-18
 */
@Service
public class ChargeCustomOrderInfoProcessServiceImpl implements IChargeCustomOrderInfoProcessService
{
    @Autowired
    private ChargeCustomOrderInfoProcessMapper chargeCustomOrderInfoProcessMapper;

    /**
     * 查询订单流程
     *
     * @param orderInfoProcessId 订单流程主键
     * @return 订单流程
     */
    @Override
    public ChargeCustomOrderInfoProcess selectChargeCustomOrderInfoProcessByOrderInfoProcessId(Long orderInfoProcessId)
    {
        return chargeCustomOrderInfoProcessMapper.selectChargeCustomOrderInfoProcessByOrderInfoProcessId(orderInfoProcessId);
    }

    /**
     * 查询订单流程列表
     *
     * @param chargeCustomOrderInfoProcess 订单流程
     * @return 订单流程
     */
    @Override
    public List<ChargeCustomOrderInfoProcess> selectChargeCustomOrderInfoProcessList(ChargeCustomOrderInfoProcess chargeCustomOrderInfoProcess)
    {
        return chargeCustomOrderInfoProcessMapper.selectChargeCustomOrderInfoProcessList(chargeCustomOrderInfoProcess);
    }

    /**
     * 新增订单流程
     *
     * @param chargeCustomOrderInfoProcess 订单流程
     * @return 结果
     */
    @Override
    public int insertChargeCustomOrderInfoProcess(ChargeCustomOrderInfoProcess chargeCustomOrderInfoProcess)
    {
        return chargeCustomOrderInfoProcessMapper.insertChargeCustomOrderInfoProcess(chargeCustomOrderInfoProcess);
    }

    /**
     * 修改订单流程
     *
     * @param chargeCustomOrderInfoProcess 订单流程
     * @return 结果
     */
    @Override
    public int updateChargeCustomOrderInfoProcess(ChargeCustomOrderInfoProcess chargeCustomOrderInfoProcess)
    {
        return chargeCustomOrderInfoProcessMapper.updateChargeCustomOrderInfoProcess(chargeCustomOrderInfoProcess);
    }

    /**
     * 批量删除订单流程
     *
     * @param orderInfoProcessIds 需要删除的订单流程主键
     * @return 结果
     */
    @Override
    public int deleteChargeCustomOrderInfoProcessByOrderInfoProcessIds(Long[] orderInfoProcessIds)
    {
        return chargeCustomOrderInfoProcessMapper.deleteChargeCustomOrderInfoProcessByOrderInfoProcessIds(orderInfoProcessIds);
    }

    /**
     * 删除订单流程信息
     *
     * @param orderInfoProcessId 订单流程主键
     * @return 结果
     */
    @Override
    public int deleteChargeCustomOrderInfoProcessByOrderInfoProcessId(Long orderInfoProcessId)
    {
        return chargeCustomOrderInfoProcessMapper.deleteChargeCustomOrderInfoProcessByOrderInfoProcessId(orderInfoProcessId);
    }
}
